import Vue from 'vue'
import Router from 'vue-router'
// import Login from '@/components/login'
// import Home from '@/components/home'
import Test from '@/components/test'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: resolve => require(['@/components/login'],resolve)
    },
    {
      path: "/Home",
      name: "Home",
      component: resolve => require(['@/components/home'],resolve)  // window 新增外壳方法抽离
      // component: resolve => require(['@/components/homeCopy'],resolve)  //    组件抽离
      // component: resolve => require(["@/components/homeCopyCopy.vue"], resolve)  // tools  方法封装  数据库操作
      
    },
    {
      path: "/test",
      name: "Test",
      component: Test
    }
  ]
})
